Merge "Add WikiPage::isLocal()"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Tue, 13 Sep 2016 05:23:28 +0000 (05:23 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 13 Sep 2016 05:23:28 +0000 (05:23 +0000)
1  2 
includes/page/WikiPage.php

@@@ -460,7 -460,7 +460,7 @@@ class WikiPage implements Page, IDBAcce
         * @return bool
         */
        public function hasViewableContent() {
 -              return $this->exists() || $this->mTitle->isAlwaysKnown();
 +              return $this->mTitle->isKnown();
        }
  
        /**
                Hooks::run( 'WikiPageDeletionUpdates', [ $this, $content, &$updates ] );
                return $updates;
        }
+       /**
+        * Whether this content displayed on this page
+        * comes from the local database
+        *
+        * @since 1.28
+        * @return bool
+        */
+       public function isLocal() {
+               return true;
+       }
  }